package principle.demeter;

public class Client {

    // 使用洗衣机洗衣服的方法
    public void washClothes(WashingMachine washingMachine) {
        System.out.println("小菜鸟拿好衣服准备清洗。");
        washingMachine.receiveClothes();
        washingMachine.wash();
        washingMachine.drying();
    }
}